package com.zbb.order.feignclient;

import com.zbb.base.model.Result;
import com.zbb.order.model.po.OrderSnapshot;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @FeignClient表明当前类是一个Feign客户端,value指定客户端的服务名称
 */
@FeignClient(value = "comm-api")
public interface CommServiceClient {

    @PostMapping("/comm/commUserMessage")
    Result commUserMessage(@RequestBody OrderSnapshot orderSnapshot);

    @PostMapping("/comm/commHelpUserMessage")
    Result commHelpUserMessage(@RequestBody OrderSnapshot orderSnapshot);
}
